﻿<Button x:Class="WinAutomator.Plugin.WAConnector"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vm="clr-namespace:WinAutomator.Plugin;assembly=WinAutomator.Plugin"
             xmlns:t="clr-namespace:WinAutomator.Plugin"
             mc:Ignorable="d" 
             d:DesignHeight="20" d:DesignWidth="20"
             Command="{Binding TestCommandPassParamRC}"
        
            Width="20" Height="20" MaxWidth="20" MaxHeight="20"
           >
    <Button.Resources>
        <!--Global View Model Locator-->
        <t:WAConnectorModelLocator x:Key="Locator" d:IsDataSource="True" />

    </Button.Resources>
    
    <Button.DataContext>
        <Binding Source="{StaticResource Locator}" Path="WAConnectorViewModel" />
    </Button.DataContext>
</Button>
